<form action="<?php echo url_for('main/index') ?>" method="post"<?=$form->isMultipart()?' enctype="multipart/form-data"':''?>>
<ul>
  <?php echo $form ?>
  <li>
    <input type="submit" value="Ok" />
  </li>
</ul>
</form>